package main

import (
	"fmt"
	"math/rand"
	"time"
)

func main() {
	Test1()
}

func Test1() {
	rand.Seed(time.Now().UnixNano()) // 设置随机数种子
	fmt.Println(time.Now())
	fmt.Println(time.Now().UnixNano())
	fmt.Println("A number from 1-100", rand.Intn(100)) // 返回随机数[0,n)
}
